OUT=a.out
CC=gcc
OBJS=$(patsubst %.c,%.c,$(wildcard *.c))
CFLAGS+=" -c -o "

all:${OBJS}
	${CC} -o ${OUT} $^ 

%.o:%.c
	${CC} ${CFLAGS} $@ $^ 

clean:
	${RM} ${OBJS} ${OUT}
